package com.lxb.generate.common;

public enum ResultEnum {

    UNKNOWN_ERROR(-100, "未知错误"),
    REPEAT_REGISTER(-2, "该用户已注册"),
    NOT_USER(-8, "该用户不存在"),
    USER_NOT_EXIST(-3, "不存在该用户"),
    PASSWORD_ERROR(-4, "密码错误"),
    EMPTY_USERNAME(-5, "用户名为空"),
    EMPTY_PASSWORD(-6, "密码为空"),
    TOKEN_VERITY_ERROR(402,"token验证失败"),
    TOKEN_OUT_TIME(401,"token已过期"),
    NEED_LOGIN(403, "未登录"),
    SUCCESS(0, "success"),
    NULL_POINT(-7,"空指针异常"),
    SYSTEM_ERROR(500,"系统错误");

    private Integer code;

    private String msg;

    private ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {

        return code;
    }
    public String getMsg() {
        return msg;
    }
}
